---
// src/layouts/Layout.astro
const { title = "我的博客" } = Astro.props;
import Sidebar from "../components/Sidebar.astro";
---
<html lang="zh">
  <head>
    <meta charset="UTF-8" />
    <title>{title}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  </head>
  <body>
    <div style="display: flex; min-height: 100vh;">
      <!-- 侧边栏 -->
      <Sidebar />
      <!-- 右侧内容区 -->
      <main style="flex: 1; padding: 5px;">
        <slot name="main" />
      <footer> 
        <slot name="footer"/>
      </footer>
    </main>
    </div>
  </body>
</html>
<style>
  main{
    max-width: 800px;
      padding: 32px 16px;
      display: flex;
      flex-direction: column;
      margin-left: 10px;
  }
</style>